package demo1;
class Person {
    public static String name;
    public int age;
    public Person(String name,int age){
        this.name = name;
        this.age = age;
        System.out.println(name+"构造方法的代码块！！！");
    }
    {
        System.out.println(name+"实例代码块！！！");
    }
    static {
        System.out.println(name+"静态方法代码块！！！");
    }
}
public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("sg",25);

    }
}
